﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class WebCamera : MonoBehaviour {


    public RawImage rawimage;
	
    void Start() {


        WebCamTexture webcamTexture = new WebCamTexture(640,480,30);
        rawimage.texture = webcamTexture;
        rawimage.material.mainTexture = webcamTexture;
        webcamTexture.Play();

    }
	
	// Update is called once per frame
	void Update () {
		
	}
}
